package light.head.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 申请物品明细表
 *
 */
@Entity
@Table
public class ApplyItem implements Serializable{

	private static final long serialVersionUID = -6710685684098380023L;
	
	private Integer code;			// 编号
	private Integer acode;			// 申请信息(ApplyInfo)编号
	private Integer count;			// 申请数量
	private Integer number;			// 领用数量
	private Double price;			// 物品单价
	private Double amount;			// 总金额
	
	private String gn;				// 物品名称
	private Boolean deleted = false;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column
	public Integer getCode() {
		return code;
	}
	@Column
	public Integer getAcode() {
		return acode;
	}
	@Column
	public Integer getCount() {
		return count;
	}
	@Column
	public Integer getNumber() {
		return number;
	}
	
	@Column
	public String getGn() {
		return gn;
	}
	@Column
	public Double getPrice() {
		return price;
	}
	@Column
	public Double getAmount() {
		return amount;
	}
	@Column
	public Boolean getDeleted() {
		return deleted;
	}
	


	
	
	
	
	
	public void setAmount(Double amount) {
		this.amount = amount;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}

	public void setCode(Integer code) {
		this.code = code;
	}
	public void setAcode(Integer acode) {
		this.acode = acode;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	public void setNumber(Integer number) {
		this.number = number;
	}
	public void setGn(String gn) {
		this.gn = gn;
	}

}
